package cn.zt.service.impl;

import cn.zt.dao.NavigationDao;
import cn.zt.dao.UserDao;
import cn.zt.model.Navigation;
import cn.zt.model.User;
import cn.zt.service.NavigationService;
import cn.zt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
public class NavigationServiceImpl implements NavigationService {

    @Autowired
    private NavigationDao navigationDao;

    @Override
    public List<Navigation> queryNavigation() {
        List<Navigation> navigations =  navigationDao.queryNavigation();
        return navigations;
    }
}

